package com.icart.comm;

/**
 * Ajax响应类
 */
public class AjaxRspResult {
    /**
     * 消息编码，1为成功 0 为失败
     */
    private int code;
    /**
     * 返回提示消息
     */
    private String msg;
    /**
     * 返回数据
     */
    private Object result;

    public AjaxRspResult(){this.code=1;}
    public AjaxRspResult(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public AjaxRspResult(int code,String msg,Object result){
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
